Adjusted the cookie to check user role so it is smaller than 4kb