Finish logging in and out