title: How to return back parameter values when validation is failed in Express.JS
body: <p>After validation and some fields are not satisfied with the validation rule it will redirect to the registration page, now after the direction I would like to retain the values inputted by the user and assign it to the corresponding input field. I haven't seen this in expressjs but with PHP, Ruby they do have this feature.</p>
  
  <p>This part here I want to return back the params value to front-end so that the user wont re-enter the values.</p>
  
  <pre><code>if ( req.session.flash_has_errors() ) {
      return res.redirect_with_session('/register/');
  }
  </code></pre>