Better handle cases where the user is logged out and needs to log back in.