[issue 1] finished mechanism for model validations