Change perferences to make IPID hex and validate the input.