The prayer is valid unless you do something that nullifies it such as laughing out loud, talking, eating, etc. However, the lesser the Khushu the lesser the reward.
https://www.youtube.com/watch?v=RtR_XuFz6WY

My question is on one’s concentration in salah. If one has bad khushua and while praying his mind is somewhere else, is his salah still valid?

Prayer |