fixed the admin check