How do I validate that two values do not equal each other in a Rails model? <p>I have a User model, which has an email and a password field. For security, these may not be equal to each other. How can I define this in my model?</p>