modified the empty string condition in Validator.php in order to fix the empty string always pass through the validator