Fix isLoggedIn and getCurrentUser methods.