prevented duplicate registrations + tested