added post creation functionality