fixed validation errors.