Handling unexpected user input