fixed minor issue while redirecting to home page from a logged on page if user is currently logged off, now if user goes to /pages/loggedin.php while logged off, it will redirect to index.php instead of giving a 404