Added code to parse the query string from form submission