fix bug with not being able to submit form