adding AD auth and authenticating routes in gallery