added validation for card-creation on clientside