checking card type