How are those killed in wars punished with the torment of the grave if they are not buried?
The torment of the grave refers to the suffering that the deceased experiences between the day of their death and the Day of Resurrection, which is called the Barzakh period. Similarly, it includes the blessings of the grave, whether the deceased is buried or not. And Allah The Almighty Knows Best
What is the ruling on someone who vowed to fast for two consecutive months, but failed to do so?
He is obliged to fulfill his vow by fasting for two consecutive months, but if he fails to do so then, it remains a debt on him until he either fulfills his vow, or dies. In case of his death, his guardian is supposed to fast on his behalf, or donate food from his estate in return for fasting, but if the guardian fails to do so then, it is all in the Hands of Allah.
Is touching a non-Mahram woman invalidates person's ablution?
Touching non-Mahram woman is prohibited, and according to the Shafiee's, it invalidates the ablution. And Allah Knows Best.
Is the marriage, which lacks a valid legal contract, a guardian, and a court registration, valid?
It is incumbent that a valid marriage contract be concluded in the presence of a guardian and two trustful witnesses, and it should be registered in the court to protect the rights of the wife. Actually, a valid marriage contract is what differentiates between sound marriage and fornication.