Added form validation in angularjs