Fixed bug: session was not stored when logged in

app.use(function(req, res, next) {}) to get req session should be called before route.