Credit card validator and generator