Write country code to session in login view.