Made error message vanish before display or on click