exports.notEmpty = name => v => !v || v.trim() === '' ? `${name} is required` : true
exports.notEmpty = name => v =>
!v || v.trim() === '' ? `${name} is required` : true