Implemented basic auth.