NextJS Error: Objects are not valid as a React child

I am quite new with ReactJS especially using NextJS. I encountered an error when build a NextJS app. There are one component that uses a custom hook.

"use client";
import FormText from "@/components/Form/formtext";
import useAuthController from "./authcontroller";
import { ThreeDots } from "react-loader-spinner";

export default function Auth(){
    const {
        email, setEmail,
        password, setPassword,
        error,
        signIn,
        loading
    } = useAuthController();

    const handleSubmit = (event: React.FormEvent<HTMLFormElement>) => {
        event.preventDefault();
        signIn();
    };

    return <section>
        <div className="flex flex-col items-center min-h-[80vh] md:min-h-[90vh] 2xl:min-h-[95vh] justify-center">
            <h1 className="text-kilamanjaro text-3xl font-bold">Are you My Owner?</h1>
            <div className="mt-4 w-10/12 md:mt-8 md:w-6/12 2xl:w-4/12 border border-kilamanjaro rounded px-4 py-4">
                <form className="flex flex-col gap-y-8" onSubmit={handleSubmit}>
                    <FormText title="Email" placeholder="@gmail.com" value={email} setValue={setEmail}/>
                    <FormText title="Password" placeholder="Insert Password here..." type="password" value={password} setValue={setPassword}/>
                    <div className="self-center">
                        <button className="md:hover:bg-secondary md:hover:text-white border border-secondary text-kilamanjaro font-semibold rounded-lg px-4 py-2 transition-all duration-150" disabled={loading} 
                        >{loading ? <ThreeDots width={20} height={20} color="#9AAAA9"/> : "Login"}</button>
                    </div>
                    {error && (
                        <div className="text-center text-red-500 text-sm">
                            {error}
                        </div>
                    )}
                </form>
            </div>
        </div>
    </section>
}

Here is useAuthController.ts

import { signIn as firebaseSignIn} from "@/data/firebase/auth";
import { FirebaseError } from "firebase/app";
import { useState } from "react";
import { useRouter } from "next/navigation"

function useAuthController() {
    const [email, setEmail] = useState("");
    const [password, setPassword] = useState("");
    const [error, setError] = useState("");
    const [loading, setLoading] = useState(false);
    const router = useRouter();

    const signIn = async () => {
        setLoading(true);
        try {
            const userCredentials = await firebaseSignIn(email, password);
            if (userCredentials){
                router.push("/admin");
            }
            setLoading(false);
        } catch (error) {
            if (error instanceof FirebaseError){
                console.error(error);
                setError(`Sign-In Failed : ${error.code}`);
            } else {
                console.error(error);
                setError(`Unexpected error occured : ${error}`);
            }
            setLoading(false);
        } 
    }

    return {
        email, setEmail,
        password, setPassword,
        error,
        signIn,
        loading
    }
}

export default useAuthController;

When building the app, it logs in error

Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7Bemail%2C%20setEmail%2C%20password%2C%20setPassword%2C%20error%2C%20signIn%2C%20loading%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

I tried to get the full message and here it is

Objects are not valid as a React child (found: object with keys {email, setEmail, password, setPassword, error, signIn, loading}). If you meant to render a collection of children, use an array instead.

I tried to ensure there are no objects passes on the react component, but it seems to generate the same error. I am quite confused.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật