Adding soft error message
Adding redirect to login
minor improvements in app.js