added provider registration and sessions/login