simplify error message handling
update to validator module and implementation to version 3.x