fixes on the autologin