Made the submit button work