Finish sign in-out functionality