invalid reference to undefined "options.required" instead of "required"