add function to validate parameters. Raise an ValueError exception if parameter(s) not supported.