Finished reset function

Reset is called on successful form submission