fixed small validation errors