Updated the "validate.php" class

Now, the "validate.php" class has more orderly manner of echoing errors.