Updated validate.php