master add error catching for form