Updated main.js routes, and added User Authentication on admin pages