Using this bit of code you will able to pass flash messages between requests, i.e you can pass old inputs passed by the last request, errors and custom strings, objects and arrays.
app.post('/login', (req, res) => {
if (false) {
req.flash('input', {
username: req.body.email
})