Fixed validation for xff