Add a field `class` to the registration request.