Update func.validate.php