implemented some small model validations