Implemented basic authentication.