Search function on submission page not working