Update cards.php

Added a check for the new 'format' field when uploading cards.