added angular.js form validation with directives