added auth hasRequiredRoute function