replaced ngModel check with directive require