fixing warnings on validation