Checks if the credit cards are valid.