Make login/logout procedures work.