Implement autologin after register.