Update README.md

Getter for is_valid and error