Use Rails3 validations