fixed errors and the submit button (I think)