Fix the logic for valid-salary css class