/**
  * Returns the fields for the member form - used in the registration/profile module.
  * It should return fields that are editable by the admin and the logged-in user.
  *
  * @return FieldList Returns a {@link FieldList} containing the fields for
  *                   the member form.
  */
 public function getMemberFormFields()
 {
     $fields = parent::getFrontendFields();
     $fields->replaceField('Password', $this->getMemberPasswordField());
     $fields->replaceField('Locale', new DropdownField('Locale', $this->fieldLabel('Locale'), i18n::get_existing_translations()));
     $fields->removeByName(static::config()->hidden_fields);
     $fields->removeByName('FailedLoginCount');
     $this->extend('updateMemberFormFields', $fields);
     return $fields;
 }