modified provider to handle false registrations