fix authentication.