public ActionResult Login(LoginViewModel input)
        {

            var notification = new Notification { Message = WebLocalizationKeys.INVALID_USERNAME_OR_PASSWORD.ToString() };
            try
            {
                if (input.HasCredentials())
                {
                    var redirectUrl = string.Empty;
                    var uli = _securityDataService.AuthenticateForUserId(input.UserName, input.Password,"");
                    if (uli != null)
                    {
                        if (uli.GetCurrentSubscription().ExpirationDate > DateTime.Now)
                        {
                            redirectUrl = _authenticationContext.ThisUserHasBeenAuthenticated(uli, input.RememberMe);
                            notification.Success = true;
                            notification.Message = string.Empty;
                            notification.Redirect = true;
                            notification.RedirectUrl = redirectUrl;
                        }
                    }
                }
            }
            catch (Exception ex)
            {
                notification = new Notification { Message = WebLocalizationKeys.ERROR_UNEXPECTED.ToString() };
                ex.Source = "CATCH RAISED";
                Elmah.ErrorSignal.FromCurrentContext().Raise(ex);
            }
            return Json(notification);
        }
 public ActionResult Login()
 {
     var loginViewModel = new LoginViewModel
                              {
                                  Title = WebLocalizationKeys.LOGIN_SYSTEM_SUPPORT.ToString()
                              };
     return View(loginViewModel);
 }