Index: backend/controllers/apiController.js
===================================================================
--- backend/controllers/apiController.js	(revision 074a70e4190d3d24571f1f134621f2dde3572fdd)
+++ backend/controllers/apiController.js	(revision 3fe99af6431b16a83f8b788dbdb6446fd3ced21c)
@@ -7,5 +7,4 @@
     const { username, email, password, name } = req.body;
 
-    // Validate input
     if (!username || !email || !password || !name) {
       return res.status(400).json({
@@ -16,5 +15,4 @@
 
     try {
-      // Step 1: Create auth user in Supabase
       const { data: authUser, error: authError } =
         await supabase.auth.admin.createUser({
@@ -26,5 +24,4 @@
       if (authError) throw new Error(authError.message);
 
-      // Step 2: Create Student instance
       const student = new Student({
         id: authUser.user.id,
@@ -32,13 +29,10 @@
         email,
         name,
-        // Add other properties as needed
       });
 
-      // Step 3: Use the Student instance to create the database record
       const { studentInstance, error } = await createUserInSupabase(student);
 
       if (error) throw new Error(error.message);
 
-      // Success response
       res.status(201).json({
         message: 'Registration successful',
@@ -62,10 +56,9 @@
 };
 
-// Replace your createUserInSupabase function
 async function createUserInSupabase(studentInstance) {
   try {
     const newUser = await prisma.users.create({
       data: {
-        id: studentInstance.id, // Use ID from Supabase Auth
+        id: studentInstance.id,
         username: studentInstance.username,
         email: studentInstance.email,
@@ -87,5 +80,4 @@
 }
 
-// Update your loginPOST function
 const loginPOST = async (req, res) => {
   try {
@@ -98,5 +90,4 @@
     }
 
-    // Still use Supabase for authentication
     const { data, error } = await supabase.auth.signInWithPassword({
       email,
@@ -108,5 +99,4 @@
     }
 
-    // But use Prisma to fetch the user data
     try {
       const userData = await prisma.users.findUnique({
@@ -137,6 +127,4 @@
 };
 
-// The rest of your controller remains similar
-
 module.exports = {
   registerPOST,
