Added autologin after registration