title: NodeJS express-validator, validationErrors()
body: <p>I am needing some help with <strong>express-validator</strong> and <strong>connect-flash</strong> in a simple <strong>NodeJS</strong> application I have</p>
  
  <p>My current code in my usercontroller module.exports.post has req.flash('error', errors) the error messages work and are flashing with connect flash but are just showing [object Object] instead of the actual message, I can do a JSON.stringify(errors) and I get the JSON message for the error, but I want it to display just the msg itself, this is the code:</p>
  
  <pre><code>module.exports.postUpdatePassword = (req, res, next) =&gt; {
  req.assert('password', 'Password must be at least 4 characters long').len(4);
  req.assert('confirmPassword', 'Passwords do not match').equals(req.body.password);
  
  const errors = req.validationErrors();
  
  if (errors) {
  req.flash('error', errors);
  return res.redirect('/editaccount');
  }
  </code></pre>
  
  <p>and this is what is display currently from the flash if I add JSON.stringify(errors):</p>
  
  <pre><code>[{"param":"password","msg":"Password must be at least 4 characters long","value":""}]
  </code></pre>