[task5] - validation works (minor cleanup of view)