Fixed posting errors, deleted code in dashboard.js and routes