Overrides Drupal\Core\Entity\EntityFormController::save().
Overrides EntityFormController::save
public function save(array $form, array &$form_state) {
$account = $this->entity;
$account
->save();
$form_state['values']['uid'] = $account
->id();
// Clear the page cache because pages can contain usernames and/or profile
// information:
cache_invalidate_tags(array(
'content' => TRUE,
));
drupal_set_message(t('The changes have been saved.'));
}