fixed example in validates documentation