Protecting the server to bad registrations