check submodule validity