Added validator class and validator for email