Changes in js/contentloader.js: -document.getElementById('btnCreate').addEventListener("click" , async (event) => { document.getElementById('create-form').addEventListener("submit" , async (event) => {