setting up form to submit data to db