sends form data and redirects on success