form validation on the card screen