Multi-environment login system working.