finally got erc to autologin