Fixed validation for knockout example