add validation to Materials form
add validation to Materials form