Added config validation for materials and entities