fix #442: fix form validation and closing animation of cards