add error handeling to new decks and cards