Updated search feature to give error message when results not found