Added client-side error handling for recaptcha.