- changed validate() API