fixed stupid loggedIn bug