Site language now gets fetched on login

This PR solves the issue at #4483 

It fetches the application language tag and ensures it's not empty or null before defaulting to the site's default language.