form validation and card animation improvements