--minor fix in validation