useEffect(() => { if (userData.email) { router.push('/redirect') // redirects if there is no user } }, [userData])