remove validation function and dependency on the hibernate validator.