Added the checking that at least a single role should be present