Validate credit card numbers using Luhn algorithm and detect card type (Visa, MasterCard, Amex, etc.)