reset errorId after displaying an error message