title: Connect-flash message is not working for res.render("SomeView")
body: <p>I am not able to use connect-flash package for res.render.
  My main aim is to display a flash message on rendering of a view.</p>
  
  <p>I am able to make it work with a res.redirect("route") but not with the res.render("view") code. Is it by design ?</p>
  
  <p>My code is shown as below</p>
  
  <pre><code>if(err){
        // Apparently res.render("register") didn't work with flash. But res.redirect("/register") worked.
          req.flash("error", err.message);   // Error occurs when the user is taken, password is empty etc.
          return res.redirect("/register");  // Short circut everything. Else the code below this would run as well and that would throw an error
      }
  </code></pre>