Update README.md

Added description for two cases of using validator.