enables login/logout.