Updated integer validation