Defined a create method in PostsController