updated isDivisibleBy validator