@Override
public void create(ResearcherDto dto, BindingResult result) {
checkAllUserInputsForInvalidHtml(dto, result);
isPasswordValidAndMatchesConfirm(dto, result);
ReCaptchaResponse response = recaptcha.checkAnswer("http://WHERETHEAPPLICATIONWILLBEHOSTED/cpd/researcher/create", (String) result.getRawFieldValue("recaptcha_challenge_field"), (String) result.getRawFieldValue("recaptcha_response_field"));
if (!response.isValid()) {
result.addError(new ObjectError("captcha", "The two words you entered did not match the picture. Please try again."));
}
if (Researcher.findResearchersByEmailEquals(dto.getEmail()).getResultList().size() != 0) {
result.rejectValue("email", "researcher.error.email", "There is already an account under that email address. If you forgot your password use the forgot password link from the login page to get help.");