public ActionResult MemberLoginPost(MemberLoginModel model)
    {
        if (Membership.ValidateUser(model.Username, model.Password))
            {

                FormsAuthentication.SetAuthCookie(model.Username, model.RememberMe);

                if (!string.IsNullOrEmpty(model.ReturnUrl))
                {
                    var redirect = new Uri(model.ReturnUrl);
                    if (redirect.Host == Request.Url.Host) return Redirect(model.ReturnUrl);
                }
                return RedirectToCurrentUmbracoPage();

            }
            else
            {
                TempData["MemberLoginMessage"] = umbraco.library.GetDictionaryItem("Invalid username or password");
                return RedirectToCurrentUmbracoPage();
            }
    }
 public ActionResult MemberLoginGet()
 {
     var model = new MemberLoginModel { ReturnUrl = Request.Url.AbsoluteUri };
         return PartialView("MemberLogin", model);
 }