Fixes #4 - validating instances right before persisting