added error message after search