Bug fixes in add card and edit card. To solve: Dupicate problem.