Preventing duplicate registrations