Finishing sign in/out functionality