adding a check for the prompt in the event that the user neglects to enter a value