moved email validation to model
Merge pull request #11 from joeyrosztoczy/login-validation

moved email validation to model