check for validity for employee number working through directive