Added an IsAuthorized method for role based authentication