fix basic authentication. (removed undefined variable)