Function renaming and search function

Changed function name (checkValidInput) to (checkInvalidInput) to be
more meaningful

Updated search function
Working search function

Woohoo! It's done! Yay!