cleaned up the logout