What is the difference between a compare validator and a range validator?