gets the form submission working