tried to do the register but it doesn't work