fix resubmitting forms