Add validator isInvalid flag

Closes #166
Merge pull request #180 from dockyard/bc-166-validator-invalid-flag

Add validator isInvalid flag