Fixed register to autologin.