local validation works