new validate() method