Add check for state directory to validator.
Merge pull request #404 from rjnagal/validate

Add check for state directory to validator.