Update app.py

Auth fail handling