refactored name validation to use rails
silenced i18n deprecated message