updated search feature and added security athentication attempt