validation for form-card