if data is invalid state, show error message with ok button.