diff --git a/my_flask_app.py b/my_flask_app.py
index ffd2955c583e2da87c45926ec17b9eafeb73653f..e33416299f02be98f4bb9e9d53725f98d959eecb 100644
--- a/my_flask_app.py
+++ b/my_flask_app.py
@@ -67,7 +67,7 @@ def add_project():
         new_project = Project(title=title, description=description)
         db.session.add(new_project)
         db.session.commit()
-        return redirect(url_for('home'))
+        return redirect(url_for('Home'))
 
     return render_template('add_project.html', form=form)  # Pass the form to the template
 
diff --git a/templates/add_project.html b/templates/add_project.html
index bb8fa7f75c3d230d01680c7f4cc134b420ca41f3..b6a46935bbae55bf0b90e424801d63702ff3e259 100644
--- a/templates/add_project.html
+++ b/templates/add_project.html
@@ -21,6 +21,15 @@
     </nav>
     <h2>Add Project</h2>
     <form method="POST" action="{{ url_for('add_project') }}">
+        {% with messages = get_flashed_messages() %}
+            {% if messages %}
+                <ul class="messages">
+                    {% for message in messages %}
+                        <li>{{ message }}</li>
+                    {% endfor %}
+                </ul>
+            {% endif %}
+        {% endwith %}
         {% if form %}
             {{ form.csrf_token }}
             <div class="form-group">