Minor cleanup and addition of already registered email handling

When entering an email address that is already in the system, it was not
possible to change it after the initial error message. This has now been
handled the same as the other fields. Also in this commit, some minor
code cleanup.
Merge https://github.com/ISN-Zurich/PersonalDossiers