renamed validate to doValidate to avoid annotation parse error in PhpStorm