Defined methods in Posts controller.