# Registration - Remove confirm password

**URL:** <https://forum.keycloak.org/t/registration-remove-confirm-password/4490>\
**Category:** Extending the server\
**Created:** [August 26, 2020, 4:59am UTC](https://forum.keycloak.org/t/registration-remove-confirm-password/4490 "2020-08-26T04:59:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar-jani](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sagar-jani](https://forum.keycloak.org/u/sagar-jani)\
**Post date:** [August 26, 2020, 4:59am UTC](https://forum.keycloak.org/t/registration-remove-confirm-password/4490/1 "2020-08-26T04:59:40Z")

</div>

Hello,  
We’re building a mobile app and there is a ux requirement to design screens and remove the `confirm password` field from registration screen.

I have created a new theme and was able to deploy the ftl and it worked fine but when I try to register, it throws an error - `confirm password doesn't match`  
To resolve this issue, I have created a new jar by implementing `FormActionFactory` and removing the check for confirm password, I have also added `FormActionFactory` in metadata/services.

The jar deployment works fine but it doesn’t trigger custom class, instead it still gives this error. How can I override my cusotm class so that keycloak class doens’t get invoked ?

---

<div class="post-metadata">

**Author:** ![vju42](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/vju42/32/1143_2.png) [@vju42](https://forum.keycloak.org/u/vju42)\
**Post date:** [August 27, 2020, 3:38pm UTC](https://forum.keycloak.org/t/registration-remove-confirm-password/4490/2 "2020-08-27T15:38:59Z")

</div>

Go into Admin/Authentication, select the flow you are using currently and copy it to a new one (define clear new name).  
Add your modified authenticator to that flow, remove the old one.  
Go to the bindings tab and select your new flow (name you created above) to be used instead of the default flow (which you copied).  
You cannot modify the default flows.

---

<div class="post-metadata">

**Author:** ![sagar-jani](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@sagar-jani](https://forum.keycloak.org/u/sagar-jani)\
**Post date:** [August 29, 2020, 10:46am UTC](https://forum.keycloak.org/t/registration-remove-confirm-password/4490/3 "2020-08-29T10:46:25Z")

</div>

Yes I saw this exactly in. keycloak documentation and followed the steps, however I found out that keycloak default `RegisterPassword` class still executes and validate the confirmPassword, I had to override the default `RegisterPassword` class in my custom jar so that the classloader loads the custom class instead of default one; It’s a hecky solution but it works.

---

<div class="post-metadata">

**Author:** ![superhp](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/superhp/32/5818_2.png) [@superhp](https://forum.keycloak.org/u/superhp)\
**Post date:** [May 13, 2022, 12:16pm UTC](https://forum.keycloak.org/t/registration-remove-confirm-password/4490/4 "2022-05-13T12:16:03Z")

</div>

Is there any new way of how to disable password confirmation field in registration form?
