fixed validate_options method