fixing basic auth