public ActionResult Register(Account account) { WebSecurity.CreateUserAndAccount(account.Email, account.Password); WebSecurity.Login(account.Email, account.Password); return RedirectToAction("Index", "Home"); }