Added a validation to close the program. Changed the input message.