add two more conditions to validate a service path