PA2: check cc validity