added isAdmin component. Secured category service