Validation

checking that the user did input something in the prompt.