title: TypeError in validator node module
body: <p>I am getting following error while using validator for data.</p>
  
  <pre><code>TypeError: _validator2.default.isNull is not a function
  </code></pre>
  
  <p>I have installed validator using <code>npm install --save validator</code>  (version is validator@7.0.0)<br>
  Using validator in function as </p>
  
  <pre><code>import Validator from 'validator';
  
  function validateInput(data) {
    let errors = {};
  
    if(Validator.isNull(data.email)){
      errors.email = 'Email needed';
    }
  }
  </code></pre>
  
  <p>But when I navigate to installed validator module it is showing <code>isNull</code> function.But during validation it is throwing error.<br>
  Any help?</p>