Use the generic resource_class isntead User on registrations.

This change needs a test.