public ActionResult Login(Account account)
        {
            if (!ModelState.IsValid)
            {
                return(View("Login"));
            }

            Account result = ElearnerDataLayoutActions.HasAccount(account.Email, account.Password);

            if (result == null)
            {
                Session["wrongAuthedication"] = true;
                return(View(account));
            }

            if (result.Password != account.Password)
            {
                ViewBag.NotMatching = true;
                return(View(account));
            }

            Session[UserType.LoggedInUser.ToString()] = result;
            return(RedirectToAction("Index", "Home"));
        }