Stabilize login/logout.