By default, the user form title is the user's username which looks a little ugly if you're using the email registration module. In Drupal 7 I used to solve this problem using the title override module which is not ported do Drupal 8.
I would like to change the user form title to "Login details". Is this possible using a hook? If so: how do I do this?