fixing issue with form clearing submissions