Update index.js

Updating validateHasValue to ensure that the 'require' validator handles empty / blank strings.