Organize the validation.php codes