new method to check if the registration is correct