Added admin check logic