Implemented Card_ID() method. Throws exception if something goes wrong, returns the card id otherwise