Fix error in root_path when user is not logged in.
Revise search handler configuration to include the necessary fields.