Added ng-model for validation

Fixed lint errors