fix authentication return value