Doing setState in the Register