fixing app.py registration errors