fixed animation and validation and changed to angular 1.3