wrote a checksum validator