don't silently ignore erroneous user input in registration.py

Explicit is better than implicit.