implemented autologin setting