class UserForgetPwdValidationMidware {

    /**
     * Language service.
     */
    @Inject
    private LangPropsService langPropsService;

    public void handle(final RequestContext context) {<FILL_FUNCTION_BODY>}
}

        final JSONObject requestJSONObject = context.requestJSON();
        final String email = requestJSONObject.optString(User.USER_EMAIL);
        final String captcha = requestJSONObject.optString(CaptchaProcessor.CAPTCHA);

        if (CaptchaProcessor.invalidCaptcha(captcha)) {
            context.renderJSON(new JSONObject().put(Keys.MSG, langPropsService.get("submitFailedLabel") + " - " + langPropsService.get("captchaErrorLabel")));
            context.abort();
            return;
        }

        if (!Strings.isEmail(email)) {
            context.renderJSON(new JSONObject().put(Keys.MSG, langPropsService.get("submitFailedLabel") + " - " + langPropsService.get("invalidEmailLabel")));
            context.abort();
            return;
        }

        context.handle();
    
<no_super_class>