added validations for checksum lengths