add authChecker middleware.