update for logout