Added configuration validation for unit type #32 #22