Simple validation in angular.js