Index: reactapp/src/Pages/Professor.js
===================================================================
--- reactapp/src/Pages/Professor.js	(revision 8d831804abcee99d72c207c57a8f16e54b1329a2)
+++ reactapp/src/Pages/Professor.js	(revision c68150fac8ab8e6f5dc5b8b2a9cd73d391dc1aa7)
@@ -25,20 +25,21 @@
 import { CurrentPageNav } from "../Components/Styled/Main.style";
 
-function Professor(user, userLoaded) {
+function Professor() {
   let params = useParams();
+  let navigate = useNavigate();
 
-  let [professor, setProfessor] = useState(null);
-  let [loaded, setLoaded] = useState(null);
-  let [postModalDisplay, setPostModalDisplay] = useState("none");
-  let navigate = useNavigate();
+  const [professor, setProfessor] = useState(null);
+  const [loadedProfessor, setLoadedProfessor] = useState(false);
+
+  const [postModalDisplay, setPostModalDisplay] = useState("none");
   const { auth, setAuth } = useContext(AuthApi);
-  const [postTitle, setPostTitle] = useState("");
   const [postContent, setPostContent] = useState("");
   const [fetchError, setFetchError] = useState(false);
+  const [errorMessage, setErrorMessage] = useState("");
 
   useEffect(() => {
     const url = `http://192.168.0.17:8080/public/professor/${params.professorId}`;
 
-    const fetchData = async () => {
+    const fetchProfessor = async () => {
       try {
         const response = await fetch(url);
@@ -47,5 +48,5 @@
         cyclicGraph = JSOG.decode(jsogStructure);
         setProfessor(cyclicGraph);
-        setLoaded(true);
+        setLoadedProfessor(true);
       } catch (error) {
         setFetchError(true);
@@ -53,5 +54,5 @@
     };
 
-    fetchData();
+    fetchProfessor();
   }, [params.professorId]);
 
@@ -71,21 +72,20 @@
     e.preventDefault();
 
-    const response = await axios(
-      `http://192.168.0.17:8080/secure/professor/${professor.professorId}/addOpinion`,
-      {
-        method: "post",
-        data: {
-          title: postTitle,
-          content: postContent,
-        },
-        withCredentials: true,
-      }
-    );
-
-    window.location.reload(false);
-  };
-
-  const handleTitleChange = (e) => {
-    setPostTitle(e.target.value);
+    if (!postContent.length < 1) {
+      const response = await axios(
+        `http://192.168.0.17:8080/secure/professor/${params.professorId}/addOpinion`,
+        {
+          method: "post",
+          data: {
+            content: postContent,
+          },
+          withCredentials: true,
+        }
+      );
+      setErrorMessage("");
+      window.location.reload(false);
+    } else {
+      setErrorMessage("Полето за содржина не смее да биде празно");
+    }
   };
 
@@ -94,5 +94,5 @@
   };
 
-  if (loaded) {
+  if (loadedProfessor) {
     return (
       <div>
@@ -120,5 +120,5 @@
           </div>
         </ProfessorCard>
-        <div style={{ height: "20px", marginBottom: "30px" }}>
+        <div style={{ height: "20px", marginBottom: "50px" }}>
           <h3
             style={{
@@ -146,13 +146,4 @@
             <form onSubmit={handlePostSubmit}>
               <ModalBody>
-                <label htmlFor="title">
-                  <b>Наслов</b>:
-                  <ModalInput
-                    id="title"
-                    type="text"
-                    value={postTitle}
-                    onChange={handleTitleChange}
-                  />
-                </label>
                 <label htmlFor="content">
                   <b>Содржина</b>:
@@ -166,4 +157,9 @@
                 </label>
               </ModalBody>
+              <p
+                style={{ color: "red", marginLeft: "15px", marginTop: "10px" }}
+              >
+                {errorMessage}
+              </p>
               <ModalFooter type="submit">ОБЈАВИ</ModalFooter>
             </form>
@@ -172,9 +168,5 @@
 
         <div className="opinionTree">
-          <OpinionTree
-            professor={professor}
-            user={user}
-            userLoaded={userLoaded}
-          />
+          <OpinionTree professor={professor} />
         </div>
         <Outlet />
