Refactored some code. Still working on how to best structure the admin paths and inject authentication on each page.