Checks if the credit/debit card is valid or not and also prints the type of card