Adding angular.js validation