simpler solution for logging out of the app