public ActionResult UserRegistration(VMUser userDetails) { if (ModelState.IsValid) { var email = user.Create(userDetails); if (email != string.Empty) { FormsAuthentication.SetAuthCookie(email, false); return(RedirectToAction("Index", "Home")); } return(View()); } return(View()); }