Validate required fields before saving or inserting docuemnts.
Do field encoding/decoding/validating on document access.