Problem with user input

You may want to have a look at this tutorial: