adding functionality to se credit card input value when selecting card type