added search button and nonvalide input won't be added to hashmap anymore #2