Added basic authentication for new-post operation.