Added calculation for checksum

Added calculation for checksum and comparison to last digit input