Is it a condition that a woman should untie her locks while making Ghusl (ritual bath)?
Ghusl from Janabah (ritual impurity), or menstruation obligates that water reaches the roots of the hair in order for the Ghusl to be valid, but if it doesn`t, then hair locks must be untied for water to reach them, and for Ghusl to become valid.
Is the marriage contract considered valid if concluded at home by the marriage official (Ma`zon)?
Yes, it is valid as long as it is registered at the court.
When is a child instructed to fast?
A child is instructed to fast at the age of seven if they are capable of fasting and have reached the age of discernment, by analogy to prayer. They should be encouraged but not forced, so they can become accustomed to it. It is obligatory for their guardian, whether a father or another, to instruct them.
Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.