serch now only works if user is logged in