verifying user input