fixing validation errors.