diff --git a/controllers/tourController.js b/controllers/tourController.js
index 3a32d8f3ad08be3b41410763e716155af57c4947..7c91a4d03425525b113b7603e65bc199b699c3f4 100644
--- a/controllers/tourController.js
+++ b/controllers/tourController.js
@@ -84,7 +84,7 @@ exports.Logout = (req, res) => {
 exports.getProfilePage = (req, res) => {
   if (req.session.userId) {
     // ส่งข้อมูลของผู้ใช้ไปที่หน้าโปรไฟล์
-    res.render('profile', { user: req.session.userName, session: req.session });
+    res.render('profile', { user, session: req.session });
   } else {
     // ถ้าไม่ได้ล็อกอิน ให้ไปที่หน้า login
     res.redirect('/login');
diff --git a/views/profile.ejs b/views/profile.ejs
index 74cad49bf1eecb57d87357a73da7655e4c139814..54094273ca5e6f69d94244a0c8ac9163f7b65ef1 100644
--- a/views/profile.ejs
+++ b/views/profile.ejs
@@ -8,7 +8,7 @@
 </head>
 <body>
   <header>
-    <h1>Welcome, <%= users.name %>!</h1>
+    <h1>Welcome, <%= user.name %>!</h1>
     <nav>
       <a href="/">Home</a>
       <a href="/logout">Logout</a>
@@ -18,8 +18,8 @@
   <section class="profile-container">
     <h2>Your Profile</h2>
     <div class="profile-card">
-      <p><strong>Name:</strong> <%= users.name %></p>
-      <p><strong>Email:</strong> <%= users.email %></p>
+      <p><strong>Name:</strong> <%= user.name %></p>
+      <p><strong>Email:</strong> <%= user.email %></p>
     </div>
     
     <a href="/edit-profile" class="btn-edit">Edit Profile</a>