finish log in/log out