public static function processEmailUpdate(&$element, FormStateInterface $form_state, &$complete_form) {
    $element['email'] = [
      '#type' => 'email',
      '#title' => isset($element['#title']) ? $element['#title'] : '',
      '#value' => isset($element['#value']['email']) ? $element['#value']['email'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['password'] = [
      '#type' => 'password',
      '#title' => t('Password'),
      '#value' => isset($element['#value']['password']) ? $element['#value']['password'] : NULL,
      '#required' => $element['#required'],
      '#error_no_message' => TRUE,
    ];
    $element['#element_validate'] = [[get_called_class(), 'validateEmailUpdate']];
    $element['#tree'] = TRUE;

    return $element;
  }