added validations to CreateCompilationUnitCommand