add a few validation