rewriting login, to allow multiple backend languages