auth: implemented basic auth.