minor app.py changes for register