Added autologin after registration.