Added custom data validation attributes. Fixes #10