changing button functions to submit functions
typos
typos
adding some validation
typos