Fixes loggedIn status