text: const validator = require('validator');
  const isEmpty = require('../../../utils/isEmpty');
  
  module.exports = (data) => {
    const errors = {};
  
    if (data.website && !validator.isURL(data.website)) {
      errors.website = 'Website filed must be a valid url';
    }
  
    return {
      errors,
      isValid: Object.keys(errors).length === 0,
    };
  };
  