Fix autologin on register