check salesman id duplicate function