Created form submit functionality