Amended sign out functionality