required validator fix