Added auto relogin.