Proper caching of character
When an error occurs, we need to set loggedIn to false