luci2: fix field validation

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>