Implemented basic authentication