function for the form
form.html page created to render at server