added range hour validation