Updated the dashboard.js to clear the form data after post