added validation to service path