add error handling for option 4 on search menu