add autologin after register