Add check for state directory to validator.