process all form elements prior to returning