refactor ruby on rails validations with new style

- new style validators