add one more condition to validate a service path