created validations for models