public ActionResult Login() { //has the system been setup yet bool noUsers = db.ufn_HaveUsers(); if (User.Identity.IsAuthenticated) { return(RedirectToAction("Index", "Home")); } else if (!User.Identity.IsAuthenticated && !noUsers) { TempData["setupAccessKey"] = "EYEv8gaP3Ys30IMCM9mE"; return(RedirectToAction("Create", "DARESystem")); } else { return(View()); } }