VerifyPassword($_POST['password']) === false) { die("Invalid login details."); } $sUser->Authenticate(); $sCurrentUser = $sUser; } redirect("/list");