userExists($_SESSION['loginuser'])) { header('Location: login.php'); exit; }