Prevent duplicate registrations.