fix on mongo-example client side validation
replicate fix on mongoose-example