Essentials of Namaz if fulfilled such minor issues make no difference.
The essentials of prayers are
The prayer should begin with raf‘ al-yadayn (raising high both hands);
qiyam(standing upright) should ensue;
it should be followed by the ruku‘ (kneeling down);
qawmah(standing up after the ruku‘) should then be done;
two consecutive prostrations should then follow;
in the second and last rak‘atof each prayer, a person should do qa‘dah (to sit with legs folded backwards);
when a person intends to end the prayer, he can do so by turning his face during this qa‘dah.
If one makes a mistake in prayer the following ways are prescribe to correct it.
In case a person makes a mistake or thinks that he has made a mistake in the utterances and practices of the prayer, the amendment prescribed as a sunnah is that if amends can be made for the mistake, then they should be made and two prostrations (called “prostrations in lieu of a mistake”) should be offered before ending the prayer, and if making amends is not possible, then only the prostrations should be offered.
for detials see
https://www.javedahmedghamidi.org/#!/mizan/5aa6a4315e891e8f44a45788?chapterNo=4&subChapterNo=0&subChsecNo=9&lang=en