Update method of displaying error