Validating model attributes.