Finish log in and out