You need to pass the flash messages to your template, and render them yourself there:
app.get('/login',function(req,res){
res.render('login',{
title : 'Login',
errors : req.flash('error')
});
});
If you're using EJS templates (for example), you check if errors
contains a value, and show it:
<% if (errors) { %>
<p class="error"><%= errors %></p>
<% } %>