small fixes to the verify_admin function, to also handle guest users not logged in