Add validation for editing in project servlets-example-crud