small fix autologin