Added create post functionality