A:
Your Salah is valid as long as you perform the obligatory acts of the Salah. Our advice to you is to make every effort to protect yourself from Satan, as much as you can, until his insinuations stop and you spoil his tricks. What will help you in this is resorting to Allah and seeking refuge with Him from Satan at the beginning of the recitation and always in your mind. Contemplating the meanings of the Qur'an seriously will guide you to recognize the Magnificence of Allah, and reciting Takbir (saying: "Allahu Akbar [Allah is the Greatest]"), Tahlil (saying: "La ilaha illa Allah [There is no god except Allah]"), Tasbih (saying: "Subhan Allah [Glory be to Allah]"), and Tahmid (saying: "Al-hamdu lillah [All praise is due to Allah]") will help you to ward off Waswasah (insinuating thoughts from Satan). Remember that you are in front of Allah and that you are talking to Him during your Salah and that it is obligatory on you to be polite and pay attention when talking to and invoking Him. Also, have hope that Allah will ward off this Waswasah from you and that He will save you from Satan's tricks. May Allah help you to devote your mind fully to Him and ignore Satan's insinuations.May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.