Problem with conditional logic, multiple fields getting confused