added back isAdmin into admin middleware with a warning