Verifying user input with lists