validate() method