fix search bug when not logged in