In Keycloak we have a created a custom ftl registration theme that has removed the optional first name and last name fields. Our system only requires the user to have an email address and password.
However when the user hits enter an error is displayed indicating that the first name and last name need to be entered.
In the Keycloak UserModel these fields are optional, and it is also possible to create users via the admin console / api without firstname and lastname.
How do we remove these fields from the keycloak form validation on the registration screen?