Fixed small bug in example.

After you invalidate a card the 'is_valid' attribute is gone. Testing whether it is True fails as a result.