fixed isadmin helper to enable admin logout