Fixed numerous validation errors.