Implemented basic authentication

Implemented basic authentication