insert handler validation