added error message and search box clears automatically after search is made