test authenticate admin for layout