AngularJS/Rails practice with validated form