Added validateOptions function.