Fixed an error where every 404 route checked authentication