Added basic authentication for adding posts and deleting comments