Working solution for provider login.