validation and value cleaning changes, continue migrate to Doctrine DBAL