Added login/logout.