custom_validate() for Dynamic and ListOf fields