modify validate.php file