Fixes logins on main domain by forwarding to the correct subdomain, #22