error and prompt for input data