validate a value from a list of options