adds dynamic validation to cards
add validation for new card button
dynamic validation for closing a card
adds validation for the deck name