Added basic authentication and authorization