Checks validity of credit card numbers using Luhn algorithm