finish of the register process