modify error message display, add delay to hide error message