Helper for processing forms.