Since there are a number of predefined options, there is the type `choice`, which will allow you to provide the list of options and will do the needed checks automatically.