Update app/assets/javascripts/models/user.js

refactor user validator