added post object to posts controller and a form to posts view