Fix for login problem sending users to the wrong region

Login has used a substring match at login and sends users to the first matching region instead of using an exact match. It's made some regions impossible to login to based on unpredictable database query result ordering.