Is prayer nullified by having thoughts while performing it?
Prayer isn`t nullified by having thoughts while performing it, provided that the praying person offers all of its pillars and meets all of its conditions. However, the reward decreases significantly in the absence of reverence since a praying person is rewarded according to the attentiveness of his/her heart during prayer.
What should one who made an intention, at night, to make up for a missed fasting day, but broke his fast on the next day?
One who started making up a missed fasting day, then broke his/her fast without a legitimate reason is considered sinful, and is only obliged to make up for the missed fasting days. And Allah Knows Best.
My husband told me that he concluded our marriage with a fake name that belongs to another person, because he was sentenced. Nowadays, he recieved an ID, passport and birth certificate with the his current name. What is the ruling on being married to him?
Praise be to Allah, The Lord of The Worlds, and may His peace and blessings be upon our Prophet Muhammad and upon all of his family and companions. As regards being married to the person mentioned in your question: The marriage is valid so long as he was the same person your guardian concluded the marriage with, even if he changed his name i.e. if your marriage contract was concluded with the same person, since what counts regarding marriage is the persons not names. And Allah Knows Best.
When is Istikharah (guidance prayer) Du`a offered, before Tasleem (saying asalamu alikum warahmatu allah wa barakatuh to end the prayer), or after it?
It is offered after Tasleem.