Why the submit button is not working?