collecting information from prompt, if not exactly the same error message will display