add and test validations for models