Add authentication for PostsController