Fix to required validator