Added business logic for create-new-post operation.