Create validation.php

This file has validation code for sign up page as well as sending mail part.