Finish log-in/log-out