I added extra field "field\_password\_changed" to user account and I want to store there time of latest password change (simple input field).

Now, I added custom submit handler to catch user account edit action and currently it looks like this:

```
function user_form_submitted(&$form, FormStateInterface $form_state) {

  $form_state->set('field_password_changed', 'test22');

  $form['field_password_changed']['en'][0]['value']['#value'] = '54321';
  $form['field_password_changed']['widget'][0]['value']['#default_value'] = 'My new value';
  $form['field_password_changed']['widget'][0]['value']['#value'] = 1;

  $form["field_password_changed"]["#default_value"] = 'ffff';

}

```

Basically I tried every suggestion from this page:
<https://www.drupal.org/forum/support/module-development-and-code-questions/2013-08-01/using-hook_form_alter-to-set-a-field>

And not even one is working form me.

What is the proper way to change form field value in custom submit handler?