added email validations for user model and associated tests