fixed a few validation errors