Added new logic for an after-login redirect configurable in app.js