refactor ruby on rails validations with new style

- new style validators
- new style hashes