fixed login for app.py, added logout, and added authorize function to utils.py for checking users who log in