validating options