Initialize search form correctly