Modified the view function for /index.
Added a PostForm object which will be added to the DB session.
This PostForm object is also put in the call to render_template.