Added basic authentication for user actions.