this can detect lots of other errors. You should use the ``form.registry`` service instead to verify the registration of the type