Additional input field in Keycloak login page

Hello Keycloak community,

I need to add another field e.g. “Company” in the Keycloak login page and then assign it somehow to Keycloak user and make it available in my application (get it from the token or rest api)

I modified the login.ftl in my custom login theme

what should be the next step? Do I need custom username password form?