prototype for form submission