change the state loggedOut to true if the user is logged in