Moved e-mail validation to external module

Moved e-mail validation to external module, so we can actually use methods outside of models.