fix bug regarding detecting proper language when not logged in