Language Selector

I have a custom login page.  When the user lands on the custom login page there only he selects the language from the language selector. So the user has anonymous user role while selecting the language. After that the user logs into the application.  Now the selected language is not getting reflected on the page after login because I’m selecting the language as a anonymous user and then trying to login, so it is not getting assigned to any user.    Is there any way I can achieve this?  
1 answers

While doing sign-up itself set the language in the account to the one selected. So when the user logs in they should have the language selected since client refresh happens.