A validator AngularJS to check if inputted value is in a list