made some changes to the app.py. I took out all model logic (except login/register)
The code is still available at appold.py if you need it as a sample