Issue 3181984 adding a submit handler to clear tempstore.
requested to merge issue/simple_recaptcha-3181984:3181984-using-tempstorefactory-creates into 8.x-1.x
For #3181984 adds a submit handler that empties the user temporary storage session variable if the form is being submitted.