public ActionResult Login(User user)
        {
            //put an item in the log
            MyLogger.GetInstance().Warning("Starting login controller.");
            try
            {
                MyLogger.GetInstance().Info("Entering the login controller. Login Methoid");

                SecurityServices securityServices = new SecurityServices();
                if (securityServices.Authenticate(user))    //check if login was successful
                {
                    MyLogger.GetInstance().Info("Exit login controller. Login success!");
                    username = user.Username;
                    mainuser = user;
                    return(View("MainUserScreen", user));
                }
                return(View("Login"));
            }
            catch (Exception e)
            {
                MyLogger.GetInstance().Error("Exception! " + e.Message);
                return(Content("Exception in Login" + e.Message));
            }
        }