diff --git a/pages/auth/login.jsx b/pages/auth/login.jsx
index cdd1202fe5af3017b30c4845f5b094b98473f408..b1cb255803c440e4536f07c947adb31d43962fec 100644
--- a/pages/auth/login.jsx
+++ b/pages/auth/login.jsx
@@ -7,14 +7,12 @@ const Login = () => {
   const [username, setUsername] = useState("")
   const [password, setPassword] = useState("")
   const router = useRouter()
-  const handleGoBack = () => {
-    router.back()
-  }
 
   return (
     <main className="min-h-screen px-14 py-7 bg-[#FFF6F6] flex flex-col">
       <div className="fex flex-row w-full">
-        <button className="text-xl text-[#F875AA] font-extrabold" onClick={handleGoBack}>Back</button>
+        <button className="text-xl text-[#F875AA] font-extrabold" onClick={
+              ()=>window.location.replace("/")}>Back</button>
       </div>
       <div className="flex flex-col w-1/2 align-middle justify-around mx-auto my-auto">
         <h1 className="text-center font-extrabold text-5xl text-[#F875AA]">Log In</h1>