\Drupal calls should be avoided in classes, use dependency injection instead in AccountForm.php