Added option to check validity before persisting.
Merge pull request #80 from terrellt/feature/PersistValidationCheck

Added option to check validity before persisting.