add support for passing options through to validate, update the example to use this