Fixed url issue with the register state/page