Implement Klavier.validateOptions function.