add validation for Material