Fix required validator to fail on null, undefined and empty string