fixed auth provider bugs