Fix authentication issues