added validations to CompilationUnit