Added sign-in and sign-out behavior