[task5] - validation works