add email validations and test to user model