Updated postcontroller for the update function to work with the blog