I'm building the website based on Joomla 3. I need to disable the validation of the fields: `name`, `username`, `password1` (the second, because the first is password2) and email2 and use email1 as username (I installed the plugin Email for user authorization).

I have tried to remove these fields in file `components/com_users/models/forms/registration.xml` but the validation is still remaining. If I don't remove them but only change the rows `required="true"` to false for these fields the registration doesn't work at all and any user stored in the DB. How can I disable these fields?