login and log out.