updating include/validate.php structure