added common used card type validator for credit card validator