Index: src/main/java/it/finki/charitable/controller/DonationPostController.java
===================================================================
--- src/main/java/it/finki/charitable/controller/DonationPostController.java	(revision f8007b3af10bdaf52e0717db9aecaffd1884cc32)
+++ src/main/java/it/finki/charitable/controller/DonationPostController.java	(revision 194776a42ab45f74d99c7afd74d5674184e9d8ae)
@@ -172,5 +172,5 @@
 
         DonationPost post = donationPostService.getById(postid);
-        FundsCollected funds = new FundsCollected("online", amount);
+        FundsCollected funds = new FundsCollected("Online donation", amount);
         fundsCollectedService.save(funds);
 
Index: src/main/java/it/finki/charitable/controller/UserProfileController.java
===================================================================
--- src/main/java/it/finki/charitable/controller/UserProfileController.java	(revision f8007b3af10bdaf52e0717db9aecaffd1884cc32)
+++ src/main/java/it/finki/charitable/controller/UserProfileController.java	(revision 194776a42ab45f74d99c7afd74d5674184e9d8ae)
@@ -105,5 +105,5 @@
     }
 
-    @RequestMapping("/addFunds")
+    @RequestMapping(value = "/addFunds", method = RequestMethod.POST)
     public String addFunds(@RequestParam Long postid,
                            @RequestParam String type,
@@ -111,9 +111,10 @@
 
         DonationPost post = donationPostService.getById(postid);
-        FundsCollected funds = new FundsCollected(type, amount);
-        fundsCollectedService.save(funds);
-
-        post.getFundsCollected().add(funds);
-        donationPostService.save(post);
+        if(post.getUser().getUsername().equals(SecurityContextHolder.getContext().getAuthentication().getName())) {
+            FundsCollected funds = new FundsCollected(type, amount);
+            fundsCollectedService.save(funds);
+            post.getFundsCollected().add(funds);
+            donationPostService.save(post);
+        }
         return "redirect:/myPosts";
     }
Index: src/main/resources/templates/myProfile.html
===================================================================
--- src/main/resources/templates/myProfile.html	(revision f8007b3af10bdaf52e0717db9aecaffd1884cc32)
+++ src/main/resources/templates/myProfile.html	(revision 194776a42ab45f74d99c7afd74d5674184e9d8ae)
@@ -241,6 +241,6 @@
                                             <a class="btn btn-sm btn-outline-secondary"
                                                th:href="@{/post(postid=${post.id})}">Open</a>
-                                            <button type="button" class="btn btn-primary" data-bs-toggle="modal"
-                                                    th:data-bs-target="'#a' + ${post.id}">
+                                            <button type="button" class="btn btn-sm btn-success" data-bs-toggle="modal"
+                                                    th:data-bs-target="'#m' + ${post.id}">
                                                 Add collected funds
                                             </button>
@@ -255,5 +255,5 @@
                                 </div>
                             </div>
-                            <div class="modal fade" th:id="'a' + ${post.id}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
+                            <div class="modal fade" th:id="'m' + ${post.id}" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1"
                                  aria-labelledby="staticBackdropLabel" aria-hidden="true">
                                 <div class="modal-dialog modal-dialog-centered">
@@ -267,12 +267,14 @@
                                                 <form th:id="'my-form' + ${post.id}" th:action="@{/addFunds(postid=${post.id})}" method="post">
                                                     <div class="row">
-                                                        <div class="col">
-                                                            <select class="input-group-text" name="type">
+                                                        <div class="col-md-6">
+                                                            <label for="type" class="form-label">Type</label>
+                                                            <select id="type" class="form-select" name="type">
                                                                 <option value="Bank donation">Bank donation</option>
                                                                 <option value="Phone donation">Phone donation</option>
                                                             </select>
                                                         </div>
-                                                        <div class="col">
-                                                            <input type="number" class="input-group-text" name="amount">
+                                                        <div class="col-md-6">
+                                                            <label for="amount" class="form-label">Amount</label>
+                                                            <input id="amount" type="number" class="form-control" name="amount">
                                                         </div>
                                                     </div>
