solved card number validation