improved error handling in userinput.c