Add sign-in/sign-out function