form: Fixed PEP8 issues
tests: Fixed test_registration

.. and improved error messages in the process