bug fix. autojoin flag now used on login.