public ActionResult Authenticate()
        {
            var username = Request.QueryString["username"];
            var password = Request.QueryString["password"];
            var agent    = agentRepository.AuthenticateCredentials(username, password);

            if (agent == null)
            {
                var admin = adminRepository.AuthenticateCredentials(username, password);
                if (admin != null)
                {
                    Session["user"] = admin;
                    Session["type"] = "admin";
                    return(RedirectToAction("AdminHome"));
                }
                else
                {
                    Debug.WriteLine("Yup here");
                    bool tr = true;
                    return(RedirectToAction("Index", new { invalidUsername = true }));
                }
            }
            else
            {
                Session["user"] = agent;
                Session["type"] = "agent";
                return(RedirectToAction("Home"));
            }
        }