implemented rescue method for wrong user input in application.