core: Language autoselection in login page