fixed a few validation errors on the form