A small validation script I am using that work ok with Ember Data