Added validation function portion to check the receipt number range.