A simple read-validate-write AngularJS / Firebase example