fixed error on submit

submit button was completing no matter what