added check to ensure user enters an option from the list of options