fixing issue with form not submitting