Update from 3.6.x to 3.6.5 Profile fields
From Joomla! Documentation
Errors reported[edit]
The fields marked as `required` in the Plugin User - Profile are set as Optional in the registration form in frontend.
Versions affected[edit]
General Information
This pertains only to Joomla! version(s): 3.6.5
What is the cause[edit]
The data is not loaded into the form.
How to fix[edit]
Modify the components/com_users/models/registration.php file by taking off false on the following line.
$form = $this->getForm(array(), false);
should be
$form = $this->getForm(array());
See detail https://github.com/joomla/joomla-cms/commit/37222604e2ce92f00072f554f44b6a97cfc66756