What is the ruling on someone who perform their prayer after finishing it because they believe they missed a Rak'a, a prostration, or that they did not perform it correctly (thinking their prayer was invalid)?
If he was sure that his prayer is void then reperforming it is an obligation along with figuring out the reason of invalidity so long as this wasn't out of uncertainty. And Allah Knows Best.
Is it permissible for one to masturbate in order not to commit fornication?
This is called committing the milder of the two evils such as eating a carcass in fear of death, and this happens when committing fornication is very likely to occur.
What is the ruling on shaving the head of the newborn?
It is desirable to shave the head of the newborn on the seventh day from delivery, and the weight of his/her hair is given in gold , or silver as charity.
Is it permissible to go to the bathroom wearing a necklace that has the word "Allah" inscribed on it?
All Perfect Praie 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.
Anything that contains words pertaining to Allah, The Almighty, is desired to be left outside when going to the bathroom, or to be hidden for fear of losing it. And Allah Knows Best.