small corrections in pre_validation hook