enabled admin check and added display for debugging.