registration.py changes