Ensure res.locals.validationErrors is an array to match format returned from flash