Added method for checksum validation