reset function to clear form after each submission