diff --git a/components/auth-signup-form.tsx b/components/auth-signup-form.tsx
index 4eb7e635505f2f53dde81da374c02a922ab056a2..1c1cb16c1f39c58b100f6d055b9de65697395de4 100644
--- a/components/auth-signup-form.tsx
+++ b/components/auth-signup-form.tsx
@@ -4,13 +4,14 @@ import { Alert } from '@/components/ui/alert'
 import { Button } from '@/components/ui/button'
 import { Input } from '@/components/ui/input'
 import { Label } from '@/components/ui/label'
-import { signIn } from 'next-auth/react'
 import { useState } from 'react'
+import { useRouter } from 'next/navigation'
 
 export const SignupForm = () => {
     const [email, setEmail] = useState('')
     const [password, setPassword] = useState('')
     const [error, setError] = useState<string | null>(null)
+    const router = useRouter(); 
 
     const onSubmit = async (e: React.FormEvent) => {
         e.preventDefault()
@@ -27,7 +28,7 @@ export const SignupForm = () => {
                 }
             })
             if (res.ok) {
-                signIn()
+                router.push("/login")
             } else {
                 setError((await res.json()).error)
             }