fix form validation for card and upload images