C problems validating a credit card