validation in Dict