Add form validation when previewing acces changes
This PR fixes:
taking into consideration form validation
(bonus) Switching to using the StringTranslation trait instead of the translate method of the translation manager, since that should not be used directly, check https://github.com/drupal/drupal/blob/4b25dc769526998569fdced5ffbdf0100584c5c2/core/lib/Drupal/Core/StringTranslation/TranslationInterface.php#L15
Edited by Mario Vercellotti