Added changes to routes and authentication