Updated login/logout.