logout, handling of situations when user is logged out.