If after performing prayers one doubts whether or not he has performed an act that invalidates prayers, his prayer is valid.