adding model validations for email field and handling the case