Added IAuthProvider for dependency injection to login.