External email logic

I moved the email validation logic to a separate class from the rails validator so that the same validation code can be used in other places besides model validations
I think `puts` should not be here.