Fixed login/logout.