create post controller.