Validate card before submitting to api.