validate yaml entry