Index: frontend/src/components/StudentForm.tsx
===================================================================
--- frontend/src/components/StudentForm.tsx	(revision 9cfde80ff541664f7de7b15c8d5110e8ff61be91)
+++ frontend/src/components/StudentForm.tsx	(revision dce856bf1ac04c624d8cf2bb50647711871b92bd)
@@ -139,5 +139,5 @@
     try {
       // For updating existing form data use PATCH instead of PUT for partial updates
-      const method = formData ? "PATCH" : "POST";
+      const method = formData?.current_year ? "PATCH" : "POST";
       const endpoint = "http://localhost:8000/auth/form/";
 
@@ -192,5 +192,5 @@
     <form onSubmit={handleSubmit} className="space-y-6 max-w-4xl mx-auto">
       <h2 className="text-2xl font-bold mb-4">
-        {formData ? "Ажурирај ги податоците" : "Внеси податоци"}
+        {formData?.current_year ? "Ажурирај ги податоците" : "Внеси податоци"}
       </h2>
 
