Added a basic authentication mechanism