Add validity check to Luhn class.
Refactor.
Fix: SHA-256 hashes are of size 256 bits, not 256 bytes.
Add check characters to device id.