public void Validate(System.Web.Mvc.ModelStateDictionary modelState) { ValidationCheck.CheckErrors(this, modelState); if (!ValidationCheck.IsEmpty(this.Email) && ValidationCheck.IsEmail(this.Email)) { IUser user = ProjectConfig.DataProvider.UserRepository.GetUserByEmail(Email, false); if (user == null) { modelState.AddModelError("Email", "Sorry, the e-mail address entered was not found. Please try again."); } } }