Fixed bug with login
Fixed bug with logout
app is now configured directly from config.py