added functionality for users to sign out