Change out
module.exports.validator = validateCustomer;
for
module.exports = validateCustomer
in validator.js.
validator.js