creating a controller to receive blog posts