thank you for this tutorial, i've been searching for remote user login/registration
i think you frogot to use "Drupal\Core\Form\FormState" in RemoteUser controller.