fixed validate() phpdoc block