Fixed a bug in validated for custom card

fning