modify login to autologin