fix AuthService initialization