solved credit card validation problem