Create validate.php

code for login validation