login redirector bug fix