fix user logout