check and admin and authenticated