search controller for logged in users

this controller is for logged in users , the part of non logged users is
supposed to added after "isset" session .