updated registration.py