fix authentication response