Fixed not working validation on Angular 1.3.x