fix spouse employee id logic