Adding an auth checker helper.